import request from '../utils/request';
import { ILoginForm } from '../interface/user';

/**
 * 手机号登录
 * @param params
 * @returns
 */
export const login = async (params: ILoginForm) => {
    return await request.get(`/login/cellphone?phone=${params.username}&password=${params.password}`);
};

/**
 * 获取用户信息 歌单 收藏 MV dj
 */
export const getUserSubCount = async () => {
    return await request.get('/user/subcount');
};
